package com.runner.utility;

import com.badlogic.gdx.assets.AssetManager;
import com.badlogic.gdx.audio.Music;
import com.badlogic.gdx.audio.Sound;
import com.badlogic.gdx.graphics.Texture;

public class Assets implements Constants{
	private AssetManager manager;
	
	public Assets(){
		manager=new AssetManager();
	}
	
	public void loadAssets(){
		manager.load(NULL_GROUND_PATH, Texture.class);
		manager.load(SIGN_IN, Texture.class);
		manager.load(SIGN_OUT, Texture.class);
		manager.load(ACHIEVEMENT, Texture.class);
		manager.load(LEADERBOARD, Texture.class);
		manager.load(BACKGROUNDMAIN_RINGER, Texture.class);
		manager.load(BACKGROUNDMAIN_APRIL, Texture.class);
		manager.load(BACKGROUNDMAIN_GEO, Texture.class);
		manager.load(BLOCK_DIRT_PATH, Texture.class);
		manager.load(BLOCK_STONE_PATH, Texture.class);
		manager.load(PANEL_PATH, Texture.class);
		manager.load(GROUND_PATH, Texture.class);
		manager.load(COIN_PATH, Texture.class);
		manager.load(SHIELD_PATH, Texture.class);
		manager.load(RINGER_PICTURE, Texture.class);
		manager.load(APRIL_PICTURE, Texture.class);
		manager.load(GEO_PICTURE, Texture.class);
		manager.load(MAGNET_PICTURE, Texture.class);
		manager.load(SHIELD_PICTURE, Texture.class);
		manager.load(MULT_PICTURE, Texture.class);
		manager.load(SINGLE_COIN_PATH, Texture.class);
		manager.load(TRACK1_PICTURE, Texture.class);
		manager.load(TRACK2_PICTURE, Texture.class);
		manager.load(GOAL_PATH, Texture.class);
		manager.load(RINGER_PATH, Texture.class);
		manager.load(RINGER_JUMP_PATH, Texture.class);
		manager.load(RINGER_SLIDE_PATH, Texture.class);
		manager.load(APRIL_PATH, Texture.class);
		manager.load(APRIL_JUMP_PATH, Texture.class);
		manager.load(APRIL_SLIDE_PATH, Texture.class);
		manager.load(GEO_PATH, Texture.class);
		manager.load(GEO_JUMP_PATH, Texture.class);
		manager.load(GEO_SLIDE_PATH, Texture.class);
		manager.load(RINGER_CLOUD_PATH, Texture.class);
		manager.load(APRIL_CLOUD_PATH, Texture.class);
		manager.load(GEO_CLOUD_PATH, Texture.class);

		
		
		
		manager.load(MENU_CLICK, Sound.class);
		manager.load(NO_COINS_SOUND, Sound.class);
		manager.load(COIN_SOUND, Sound.class);
		manager.load(JUMP_SOUND, Sound.class);
		manager.load(DOUBLE_JUMP_SOUND, Sound.class);
		manager.load(WIN_SOUND, Sound.class);
		manager.load(UNLOCK_SOUND, Sound.class);
		manager.load(HIT_SOUND, Sound.class);
		manager.load(TOP_SOUND, Sound.class);
		
		manager.load(MENU_MUSIC, Music.class);
		manager.load(MUSIC1, Music.class);
		manager.load(MUSIC2, Music.class);		
		
	}
	
	public boolean doneLoading(){
		return manager.update();
	}
	
	public AssetManager getManager(){
		return manager;
	}
	
	public void dispose(){
		manager.dispose();
	}

}
